<?php

// load controller MVC
include_once("config.php");
include_once(DIR_CONTROLLER."/Controller.php");
include_once(DIR_LIBRARY."/logs.php");
include_once(DIR_LIBRARY."/db.php");
ini_set('max_execution_time',600);
ini_set('memory_limit','512M');
// new class DB : create connection database mysql
$db = new DB(DB_DRIVER, DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE);

if(!isset($_SESSION['db'])){
    $_SESSION['db'] = $db;
}

$debug = new Logs();

if(!isset($_SESSION['debug'])){
    $_SESSION['debug'] = $debug;
}

$controller = new Controller();
$controller->invoke();






?>